package com.javaweb.dao;

import com.javaweb.model.User;
import com.javaweb.service.dto.UserConditionDto;

import java.util.List;

/**
 * @desc:
 * @author: Ping
 * @date: 2024/9/23 15:51
 */

public interface UserDao {

    public Integer insert(User user) ;
    public Integer insertUserRole(Integer userId, Integer roleId) ;

    public User selectOne(String name, String password) ;
    public User selectByName(String name) ;

    public List<User> selectByRole(String roleName);

    public Integer selectCountAll() ;

    public Integer updateScore(Integer userId, int increased) ;

    List<User> selectByUserCondition(UserConditionDto userCondition);
}
